package com.study.dubbo.reference.web;

import com.alibaba.dubbo.config.annotation.Reference;
import com.study.dubbo.service.service.TestService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lin
 * @create 2018-07-30 17:12
 **/
@RestController
//@RequestMapping()
public class Test {
    @Reference(timeout = 7000,mock = "com.study.dubbo.service.service.mock.TestServiceImplMock",loadbalance = "roundrobin")
    public TestService testService;
    @GetMapping("/test")
    public String test(){
        return testService.test();
    }
}
